[.products[], .packages[]] | 
  group_by(.name) | 
  map({name: .[0].name, cves: [.[] | .cve_id] | unique}) | 
  map(select(.cves | length > 1)) |
  (["| Component | CVEs |",
    "| --------- | ---- |"] +
   [.[] | "| \(.name) | \(.cves | join(", ")) |"]) | 
  .[]
